import request from '@/utils/request'

/**
 * 获取仪表盘基础统计数据
 */
export const getDashboardStats = () => {
  return request({
    url: '/api/dashboard/stats',
    method: 'get'
  })
}

/**
 * 获取热门城市TOP10（按推荐数）
 */
export const getTopCities = () => {
  return request({
    url: '/api/dashboard/top-cities',
    method: 'get'
  })
}

/**
 * 获取平台活跃度趋势
 */
export const getActivityTrend = () => {
  return request({
    url: '/api/dashboard/activity-trend',
    method: 'get'
  })
}

/**
 * 获取用户增长趋势
 */
export const getUserGrowth = () => {
  return request({
    url: '/api/dashboard/user-growth',
    method: 'get'
  })
}

/**
 * 获取内容分类统计
 */
export const getContentCategory = () => {
  return request({
    url: '/api/dashboard/content-category',
    method: 'get'
  })
}

